package com.naodong.shenluntiku.util;

import android.content.Context;
import android.widget.ImageView;

import com.naodong.shenluntiku.app.BootstrapApplication;

import me.shingohu.man.intergation.imageloader.glide.GlideImageConfig;

/**
 * Created by hujie on 17/5/26.
 */

public class ImageLoaderUtil {


    public static void loadImage(Context context, String url, ImageView imageView) {
        if (url == null) {
            return;
        }
        GlideImageConfig.Buidler config = GlideImageConfig.builder();
        config.cacheStrategy(3).imageView(imageView).url(url);
        BootstrapApplication.getInstance().getAppComponent().imageLoader().loadImage(context, config.build());
    }





}
